<?php
	/**
	 * This is a MetaControl class, providing a QForm or QPanel access to event handlers
	 * and QControls to perform the Create, Edit, and Delete functionality
	 * of the MantisSponsorshipTable class.  This code-generated class
	 * contains all the basic elements to help a QPanel or QForm display an HTML form that can
	 * manipulate a single MantisSponsorshipTable object.
	 *
	 * To take advantage of some (or all) of these control objects, you
	 * must create a new QForm or QPanel which instantiates a MantisSponsorshipTableMetaControl
	 * class.
	 *
	 * Any and all changes to this file will be overwritten with any subsequent
	 * code re-generation.
	 *
	 * @package My QCubed Application
	 * @subpackage MetaControls
	 * @property-read MantisSponsorshipTable $MantisSponsorshipTable the actual MantisSponsorshipTable data class being edited
	 * @property QLabel $IdControl
	 * @property-read QLabel $IdLabel
	 * @property QIntegerTextBox $BugIdControl
	 * @property-read QLabel $BugIdLabel
	 * @property QIntegerTextBox $UserIdControl
	 * @property-read QLabel $UserIdLabel
	 * @property QIntegerTextBox $AmountControl
	 * @property-read QLabel $AmountLabel
	 * @property QTextBox $LogoControl
	 * @property-read QLabel $LogoLabel
	 * @property QTextBox $UrlControl
	 * @property-read QLabel $UrlLabel
	 * @property QIntegerTextBox $PaidControl
	 * @property-read QLabel $PaidLabel
	 * @property QIntegerTextBox $DateSubmittedControl
	 * @property-read QLabel $DateSubmittedLabel
	 * @property QIntegerTextBox $LastUpdatedControl
	 * @property-read QLabel $LastUpdatedLabel
	 * @property-read string $TitleVerb a verb indicating whether or not this is being edited or created
	 * @property-read boolean $EditMode a boolean indicating whether or not this is being edited or created
	 */

	class MantisSponsorshipTableMetaControlGen extends QBaseClass {
		// General Variables
		/**
		 * @var MantisSponsorshipTable objMantisSponsorshipTable
		 * @access protected
		 */
		protected $objMantisSponsorshipTable;
		/**
		 * @var QForm|QControl objParentObject
		 * @access protected
		 */
		protected $objParentObject;
		/**
		 * @var string strTitleVerb
		 * @access protected
		 */
		protected $strTitleVerb;
		/**
		 * @var boolean blnEditMode
		 * @access protected
		 */
		protected $blnEditMode;

		// Controls that allow the editing of MantisSponsorshipTable's individual data fields
		/**
		 * @var QLabel lblId
		 * @access protected
		 */
		protected $lblId;
		/**
		 * @var QIntegerTextBox txtBugId
		 * @access protected
		 */
		protected $txtBugId;
		/**
		 * @var QIntegerTextBox txtUserId
		 * @access protected
		 */
		protected $txtUserId;
		/**
		 * @var QIntegerTextBox txtAmount
		 * @access protected
		 */
		protected $txtAmount;
		/**
		 * @var QTextBox txtLogo
		 * @access protected
		 */
		protected $txtLogo;
		/**
		 * @var QTextBox txtUrl
		 * @access protected
		 */
		protected $txtUrl;
		/**
		 * @var QIntegerTextBox txtPaid
		 * @access protected
		 */
		protected $txtPaid;
		/**
		 * @var QIntegerTextBox txtDateSubmitted
		 * @access protected
		 */
		protected $txtDateSubmitted;
		/**
		 * @var QIntegerTextBox txtLastUpdated
		 * @access protected
		 */
		protected $txtLastUpdated;

		// Controls that allow the viewing of MantisSponsorshipTable's individual data fields
		/**
		 * @var QLabel lblBugId
		 * @access protected
		 */
		protected $lblBugId;
		/**
		 * @var QLabel lblUserId
		 * @access protected
		 */
		protected $lblUserId;
		/**
		 * @var QLabel lblAmount
		 * @access protected
		 */
		protected $lblAmount;
		/**
		 * @var QLabel lblLogo
		 * @access protected
		 */
		protected $lblLogo;
		/**
		 * @var QLabel lblUrl
		 * @access protected
		 */
		protected $lblUrl;
		/**
		 * @var QLabel lblPaid
		 * @access protected
		 */
		protected $lblPaid;
		/**
		 * @var QLabel lblDateSubmitted
		 * @access protected
		 */
		protected $lblDateSubmitted;
		/**
		 * @var QLabel lblLastUpdated
		 * @access protected
		 */
		protected $lblLastUpdated;

		// QListBox Controls (if applicable) to edit Unique ReverseReferences and ManyToMany References

		// QLabel Controls (if applicable) to view Unique ReverseReferences and ManyToMany References


		/**
		 * Main constructor.  Constructor OR static create methods are designed to be called in either
		 * a parent QPanel or the main QForm when wanting to create a
		 * MantisSponsorshipTableMetaControl to edit a single MantisSponsorshipTable object within the
		 * QPanel or QForm.
		 *
		 * This constructor takes in a single MantisSponsorshipTable object, while any of the static
		 * create methods below can be used to construct based off of individual PK ID(s).
		 *
		 * @param mixed $objParentObject QForm or QPanel which will be using this MantisSponsorshipTableMetaControl
		 * @param MantisSponsorshipTable $objMantisSponsorshipTable new or existing MantisSponsorshipTable object
		 */
		 public function __construct($objParentObject, MantisSponsorshipTable $objMantisSponsorshipTable) {
			// Setup Parent Object (e.g. QForm or QPanel which will be using this MantisSponsorshipTableMetaControl)
			$this->objParentObject = $objParentObject;

			// Setup linked MantisSponsorshipTable object
			$this->objMantisSponsorshipTable = $objMantisSponsorshipTable;

			// Figure out if we're Editing or Creating New
			if ($this->objMantisSponsorshipTable->__Restored) {
				$this->strTitleVerb = QApplication::Translate('Edit');
				$this->blnEditMode = true;
			} else {
				$this->strTitleVerb = QApplication::Translate('Create');
				$this->blnEditMode = false;
			}
		 }

		/**
		 * Static Helper Method to Create using PK arguments
		 * You must pass in the PK arguments on an object to load, or leave it blank to create a new one.
		 * If you want to load via QueryString or PathInfo, use the CreateFromQueryString or CreateFromPathInfo
		 * static helper methods.  Finally, specify a CreateType to define whether or not we are only allowed to
		 * edit, or if we are also allowed to create a new one, etc.
		 *
		 * @param mixed $objParentObject QForm or QPanel which will be using this MantisSponsorshipTableMetaControl
		 * @param integer $intId primary key value
		 * @param QMetaControlCreateType $intCreateType rules governing MantisSponsorshipTable object creation - defaults to CreateOrEdit
 		 * @return MantisSponsorshipTableMetaControl
		 */
		public static function Create($objParentObject, $intId = null, $intCreateType = QMetaControlCreateType::CreateOrEdit) {
			// Attempt to Load from PK Arguments
			if (strlen($intId)) {
				$objMantisSponsorshipTable = MantisSponsorshipTable::Load($intId);

				// MantisSponsorshipTable was found -- return it!
				if ($objMantisSponsorshipTable)
					return new MantisSponsorshipTableMetaControl($objParentObject, $objMantisSponsorshipTable);

				// If CreateOnRecordNotFound not specified, throw an exception
				else if ($intCreateType != QMetaControlCreateType::CreateOnRecordNotFound)
					throw new QCallerException('Could not find a MantisSponsorshipTable object with PK arguments: ' . $intId);

			// If EditOnly is specified, throw an exception
			} else if ($intCreateType == QMetaControlCreateType::EditOnly)
				throw new QCallerException('No PK arguments specified');

			// If we are here, then we need to create a new record
			return new MantisSponsorshipTableMetaControl($objParentObject, new MantisSponsorshipTable());
		}

		/**
		 * Static Helper Method to Create using PathInfo arguments
		 *
		 * @param mixed $objParentObject QForm or QPanel which will be using this MantisSponsorshipTableMetaControl
		 * @param QMetaControlCreateType $intCreateType rules governing MantisSponsorshipTable object creation - defaults to CreateOrEdit
		 * @return MantisSponsorshipTableMetaControl
		 */
		public static function CreateFromPathInfo($objParentObject, $intCreateType = QMetaControlCreateType::CreateOrEdit) {
			$intId = QApplication::PathInfo(0);
			return MantisSponsorshipTableMetaControl::Create($objParentObject, $intId, $intCreateType);
		}

		/**
		 * Static Helper Method to Create using QueryString arguments
		 *
		 * @param mixed $objParentObject QForm or QPanel which will be using this MantisSponsorshipTableMetaControl
		 * @param QMetaControlCreateType $intCreateType rules governing MantisSponsorshipTable object creation - defaults to CreateOrEdit
		 * @return MantisSponsorshipTableMetaControl
		 */
		public static function CreateFromQueryString($objParentObject, $intCreateType = QMetaControlCreateType::CreateOrEdit) {
			$intId = QApplication::QueryString('intId');
			return MantisSponsorshipTableMetaControl::Create($objParentObject, $intId, $intCreateType);
		}



		///////////////////////////////////////////////
		// PUBLIC CREATE and REFRESH METHODS
		///////////////////////////////////////////////

		/**
		 * Create and setup QLabel lblId
		 * @param string $strControlId optional ControlId to use
		 * @return QLabel
		 */
		public function lblId_Create($strControlId = null) {
			$this->lblId = new QLabel($this->objParentObject, $strControlId);
			$this->lblId->Name = QApplication::Translate('Id');
			if ($this->blnEditMode)
				$this->lblId->Text = $this->objMantisSponsorshipTable->Id;
			else
				$this->lblId->Text = 'N/A';
			return $this->lblId;
		}

		/**
		 * Create and setup QIntegerTextBox txtBugId
		 * @param string $strControlId optional ControlId to use
		 * @return QIntegerTextBox
		 */
		public function txtBugId_Create($strControlId = null) {
			$this->txtBugId = new QIntegerTextBox($this->objParentObject, $strControlId);
			$this->txtBugId->Name = QApplication::Translate('Bug Id');
			$this->txtBugId->Text = $this->objMantisSponsorshipTable->BugId;
			$this->txtBugId->Required = true;
			return $this->txtBugId;
		}

		/**
		 * Create and setup QLabel lblBugId
		 * @param string $strControlId optional ControlId to use
		 * @param string $strFormat optional sprintf format to use
		 * @return QLabel
		 */
		public function lblBugId_Create($strControlId = null, $strFormat = null) {
			$this->lblBugId = new QLabel($this->objParentObject, $strControlId);
			$this->lblBugId->Name = QApplication::Translate('Bug Id');
			$this->lblBugId->Text = $this->objMantisSponsorshipTable->BugId;
			$this->lblBugId->Required = true;
			$this->lblBugId->Format = $strFormat;
			return $this->lblBugId;
		}

		/**
		 * Create and setup QIntegerTextBox txtUserId
		 * @param string $strControlId optional ControlId to use
		 * @return QIntegerTextBox
		 */
		public function txtUserId_Create($strControlId = null) {
			$this->txtUserId = new QIntegerTextBox($this->objParentObject, $strControlId);
			$this->txtUserId->Name = QApplication::Translate('User Id');
			$this->txtUserId->Text = $this->objMantisSponsorshipTable->UserId;
			$this->txtUserId->Required = true;
			return $this->txtUserId;
		}

		/**
		 * Create and setup QLabel lblUserId
		 * @param string $strControlId optional ControlId to use
		 * @param string $strFormat optional sprintf format to use
		 * @return QLabel
		 */
		public function lblUserId_Create($strControlId = null, $strFormat = null) {
			$this->lblUserId = new QLabel($this->objParentObject, $strControlId);
			$this->lblUserId->Name = QApplication::Translate('User Id');
			$this->lblUserId->Text = $this->objMantisSponsorshipTable->UserId;
			$this->lblUserId->Required = true;
			$this->lblUserId->Format = $strFormat;
			return $this->lblUserId;
		}

		/**
		 * Create and setup QIntegerTextBox txtAmount
		 * @param string $strControlId optional ControlId to use
		 * @return QIntegerTextBox
		 */
		public function txtAmount_Create($strControlId = null) {
			$this->txtAmount = new QIntegerTextBox($this->objParentObject, $strControlId);
			$this->txtAmount->Name = QApplication::Translate('Amount');
			$this->txtAmount->Text = $this->objMantisSponsorshipTable->Amount;
			$this->txtAmount->Required = true;
			return $this->txtAmount;
		}

		/**
		 * Create and setup QLabel lblAmount
		 * @param string $strControlId optional ControlId to use
		 * @param string $strFormat optional sprintf format to use
		 * @return QLabel
		 */
		public function lblAmount_Create($strControlId = null, $strFormat = null) {
			$this->lblAmount = new QLabel($this->objParentObject, $strControlId);
			$this->lblAmount->Name = QApplication::Translate('Amount');
			$this->lblAmount->Text = $this->objMantisSponsorshipTable->Amount;
			$this->lblAmount->Required = true;
			$this->lblAmount->Format = $strFormat;
			return $this->lblAmount;
		}

		/**
		 * Create and setup QTextBox txtLogo
		 * @param string $strControlId optional ControlId to use
		 * @return QTextBox
		 */
		public function txtLogo_Create($strControlId = null) {
			$this->txtLogo = new QTextBox($this->objParentObject, $strControlId);
			$this->txtLogo->Name = QApplication::Translate('Logo');
			$this->txtLogo->Text = $this->objMantisSponsorshipTable->Logo;
			$this->txtLogo->Required = true;
			$this->txtLogo->MaxLength = MantisSponsorshipTable::LogoMaxLength;
			return $this->txtLogo;
		}

		/**
		 * Create and setup QLabel lblLogo
		 * @param string $strControlId optional ControlId to use
		 * @return QLabel
		 */
		public function lblLogo_Create($strControlId = null) {
			$this->lblLogo = new QLabel($this->objParentObject, $strControlId);
			$this->lblLogo->Name = QApplication::Translate('Logo');
			$this->lblLogo->Text = $this->objMantisSponsorshipTable->Logo;
			$this->lblLogo->Required = true;
			return $this->lblLogo;
		}

		/**
		 * Create and setup QTextBox txtUrl
		 * @param string $strControlId optional ControlId to use
		 * @return QTextBox
		 */
		public function txtUrl_Create($strControlId = null) {
			$this->txtUrl = new QTextBox($this->objParentObject, $strControlId);
			$this->txtUrl->Name = QApplication::Translate('Url');
			$this->txtUrl->Text = $this->objMantisSponsorshipTable->Url;
			$this->txtUrl->Required = true;
			$this->txtUrl->MaxLength = MantisSponsorshipTable::UrlMaxLength;
			return $this->txtUrl;
		}

		/**
		 * Create and setup QLabel lblUrl
		 * @param string $strControlId optional ControlId to use
		 * @return QLabel
		 */
		public function lblUrl_Create($strControlId = null) {
			$this->lblUrl = new QLabel($this->objParentObject, $strControlId);
			$this->lblUrl->Name = QApplication::Translate('Url');
			$this->lblUrl->Text = $this->objMantisSponsorshipTable->Url;
			$this->lblUrl->Required = true;
			return $this->lblUrl;
		}

		/**
		 * Create and setup QIntegerTextBox txtPaid
		 * @param string $strControlId optional ControlId to use
		 * @return QIntegerTextBox
		 */
		public function txtPaid_Create($strControlId = null) {
			$this->txtPaid = new QIntegerTextBox($this->objParentObject, $strControlId);
			$this->txtPaid->Name = QApplication::Translate('Paid');
			$this->txtPaid->Text = $this->objMantisSponsorshipTable->Paid;
			$this->txtPaid->Required = true;
			return $this->txtPaid;
		}

		/**
		 * Create and setup QLabel lblPaid
		 * @param string $strControlId optional ControlId to use
		 * @param string $strFormat optional sprintf format to use
		 * @return QLabel
		 */
		public function lblPaid_Create($strControlId = null, $strFormat = null) {
			$this->lblPaid = new QLabel($this->objParentObject, $strControlId);
			$this->lblPaid->Name = QApplication::Translate('Paid');
			$this->lblPaid->Text = $this->objMantisSponsorshipTable->Paid;
			$this->lblPaid->Required = true;
			$this->lblPaid->Format = $strFormat;
			return $this->lblPaid;
		}

		/**
		 * Create and setup QIntegerTextBox txtDateSubmitted
		 * @param string $strControlId optional ControlId to use
		 * @return QIntegerTextBox
		 */
		public function txtDateSubmitted_Create($strControlId = null) {
			$this->txtDateSubmitted = new QIntegerTextBox($this->objParentObject, $strControlId);
			$this->txtDateSubmitted->Name = QApplication::Translate('Date Submitted');
			$this->txtDateSubmitted->Text = $this->objMantisSponsorshipTable->DateSubmitted;
			$this->txtDateSubmitted->Required = true;
			return $this->txtDateSubmitted;
		}

		/**
		 * Create and setup QLabel lblDateSubmitted
		 * @param string $strControlId optional ControlId to use
		 * @param string $strFormat optional sprintf format to use
		 * @return QLabel
		 */
		public function lblDateSubmitted_Create($strControlId = null, $strFormat = null) {
			$this->lblDateSubmitted = new QLabel($this->objParentObject, $strControlId);
			$this->lblDateSubmitted->Name = QApplication::Translate('Date Submitted');
			$this->lblDateSubmitted->Text = $this->objMantisSponsorshipTable->DateSubmitted;
			$this->lblDateSubmitted->Required = true;
			$this->lblDateSubmitted->Format = $strFormat;
			return $this->lblDateSubmitted;
		}

		/**
		 * Create and setup QIntegerTextBox txtLastUpdated
		 * @param string $strControlId optional ControlId to use
		 * @return QIntegerTextBox
		 */
		public function txtLastUpdated_Create($strControlId = null) {
			$this->txtLastUpdated = new QIntegerTextBox($this->objParentObject, $strControlId);
			$this->txtLastUpdated->Name = QApplication::Translate('Last Updated');
			$this->txtLastUpdated->Text = $this->objMantisSponsorshipTable->LastUpdated;
			$this->txtLastUpdated->Required = true;
			return $this->txtLastUpdated;
		}

		/**
		 * Create and setup QLabel lblLastUpdated
		 * @param string $strControlId optional ControlId to use
		 * @param string $strFormat optional sprintf format to use
		 * @return QLabel
		 */
		public function lblLastUpdated_Create($strControlId = null, $strFormat = null) {
			$this->lblLastUpdated = new QLabel($this->objParentObject, $strControlId);
			$this->lblLastUpdated->Name = QApplication::Translate('Last Updated');
			$this->lblLastUpdated->Text = $this->objMantisSponsorshipTable->LastUpdated;
			$this->lblLastUpdated->Required = true;
			$this->lblLastUpdated->Format = $strFormat;
			return $this->lblLastUpdated;
		}



		/**
		 * Refresh this MetaControl with Data from the local MantisSponsorshipTable object.
		 * @param boolean $blnReload reload MantisSponsorshipTable from the database
		 * @return void
		 */
		public function Refresh($blnReload = false) {
			if ($blnReload)
				$this->objMantisSponsorshipTable->Reload();

			if ($this->lblId) if ($this->blnEditMode) $this->lblId->Text = $this->objMantisSponsorshipTable->Id;

			if ($this->txtBugId) $this->txtBugId->Text = $this->objMantisSponsorshipTable->BugId;
			if ($this->lblBugId) $this->lblBugId->Text = $this->objMantisSponsorshipTable->BugId;

			if ($this->txtUserId) $this->txtUserId->Text = $this->objMantisSponsorshipTable->UserId;
			if ($this->lblUserId) $this->lblUserId->Text = $this->objMantisSponsorshipTable->UserId;

			if ($this->txtAmount) $this->txtAmount->Text = $this->objMantisSponsorshipTable->Amount;
			if ($this->lblAmount) $this->lblAmount->Text = $this->objMantisSponsorshipTable->Amount;

			if ($this->txtLogo) $this->txtLogo->Text = $this->objMantisSponsorshipTable->Logo;
			if ($this->lblLogo) $this->lblLogo->Text = $this->objMantisSponsorshipTable->Logo;

			if ($this->txtUrl) $this->txtUrl->Text = $this->objMantisSponsorshipTable->Url;
			if ($this->lblUrl) $this->lblUrl->Text = $this->objMantisSponsorshipTable->Url;

			if ($this->txtPaid) $this->txtPaid->Text = $this->objMantisSponsorshipTable->Paid;
			if ($this->lblPaid) $this->lblPaid->Text = $this->objMantisSponsorshipTable->Paid;

			if ($this->txtDateSubmitted) $this->txtDateSubmitted->Text = $this->objMantisSponsorshipTable->DateSubmitted;
			if ($this->lblDateSubmitted) $this->lblDateSubmitted->Text = $this->objMantisSponsorshipTable->DateSubmitted;

			if ($this->txtLastUpdated) $this->txtLastUpdated->Text = $this->objMantisSponsorshipTable->LastUpdated;
			if ($this->lblLastUpdated) $this->lblLastUpdated->Text = $this->objMantisSponsorshipTable->LastUpdated;

		}



		///////////////////////////////////////////////
		// PROTECTED UPDATE METHODS for ManyToManyReferences (if any)
		///////////////////////////////////////////////





		///////////////////////////////////////////////
		// PUBLIC MANTISSPONSORSHIPTABLE OBJECT MANIPULATORS
		///////////////////////////////////////////////

		/**
		 * This will save this object's MantisSponsorshipTable instance,
		 * updating only the fields which have had a control created for it.
		 */
		public function SaveMantisSponsorshipTable() {
			try {
				// Update any fields for controls that have been created
				if ($this->txtBugId) $this->objMantisSponsorshipTable->BugId = $this->txtBugId->Text;
				if ($this->txtUserId) $this->objMantisSponsorshipTable->UserId = $this->txtUserId->Text;
				if ($this->txtAmount) $this->objMantisSponsorshipTable->Amount = $this->txtAmount->Text;
				if ($this->txtLogo) $this->objMantisSponsorshipTable->Logo = $this->txtLogo->Text;
				if ($this->txtUrl) $this->objMantisSponsorshipTable->Url = $this->txtUrl->Text;
				if ($this->txtPaid) $this->objMantisSponsorshipTable->Paid = $this->txtPaid->Text;
				if ($this->txtDateSubmitted) $this->objMantisSponsorshipTable->DateSubmitted = $this->txtDateSubmitted->Text;
				if ($this->txtLastUpdated) $this->objMantisSponsorshipTable->LastUpdated = $this->txtLastUpdated->Text;

				// Update any UniqueReverseReferences (if any) for controls that have been created for it

				// Save the MantisSponsorshipTable object
				$this->objMantisSponsorshipTable->Save();

				// Finally, update any ManyToManyReferences (if any)
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * This will DELETE this object's MantisSponsorshipTable instance from the database.
		 * It will also unassociate itself from any ManyToManyReferences.
		 */
		public function DeleteMantisSponsorshipTable() {
			$this->objMantisSponsorshipTable->Delete();
		}



		///////////////////////////////////////////////
		// PUBLIC GETTERS and SETTERS
		///////////////////////////////////////////////

		/**
		 * Override method to perform a property "Get"
		 * This will get the value of $strName
		 *
		 * @param string $strName Name of the property to get
		 * @return mixed
		 */
		public function __get($strName) {
			switch ($strName) {
				// General MetaControlVariables
				case 'MantisSponsorshipTable': return $this->objMantisSponsorshipTable;
				case 'TitleVerb': return $this->strTitleVerb;
				case 'EditMode': return $this->blnEditMode;

				// Controls that point to MantisSponsorshipTable fields -- will be created dynamically if not yet created
				case 'IdControl':
					if (!$this->lblId) return $this->lblId_Create();
					return $this->lblId;
				case 'IdLabel':
					if (!$this->lblId) return $this->lblId_Create();
					return $this->lblId;
				case 'BugIdControl':
					if (!$this->txtBugId) return $this->txtBugId_Create();
					return $this->txtBugId;
				case 'BugIdLabel':
					if (!$this->lblBugId) return $this->lblBugId_Create();
					return $this->lblBugId;
				case 'UserIdControl':
					if (!$this->txtUserId) return $this->txtUserId_Create();
					return $this->txtUserId;
				case 'UserIdLabel':
					if (!$this->lblUserId) return $this->lblUserId_Create();
					return $this->lblUserId;
				case 'AmountControl':
					if (!$this->txtAmount) return $this->txtAmount_Create();
					return $this->txtAmount;
				case 'AmountLabel':
					if (!$this->lblAmount) return $this->lblAmount_Create();
					return $this->lblAmount;
				case 'LogoControl':
					if (!$this->txtLogo) return $this->txtLogo_Create();
					return $this->txtLogo;
				case 'LogoLabel':
					if (!$this->lblLogo) return $this->lblLogo_Create();
					return $this->lblLogo;
				case 'UrlControl':
					if (!$this->txtUrl) return $this->txtUrl_Create();
					return $this->txtUrl;
				case 'UrlLabel':
					if (!$this->lblUrl) return $this->lblUrl_Create();
					return $this->lblUrl;
				case 'PaidControl':
					if (!$this->txtPaid) return $this->txtPaid_Create();
					return $this->txtPaid;
				case 'PaidLabel':
					if (!$this->lblPaid) return $this->lblPaid_Create();
					return $this->lblPaid;
				case 'DateSubmittedControl':
					if (!$this->txtDateSubmitted) return $this->txtDateSubmitted_Create();
					return $this->txtDateSubmitted;
				case 'DateSubmittedLabel':
					if (!$this->lblDateSubmitted) return $this->lblDateSubmitted_Create();
					return $this->lblDateSubmitted;
				case 'LastUpdatedControl':
					if (!$this->txtLastUpdated) return $this->txtLastUpdated_Create();
					return $this->txtLastUpdated;
				case 'LastUpdatedLabel':
					if (!$this->lblLastUpdated) return $this->lblLastUpdated_Create();
					return $this->lblLastUpdated;
				default:
					try {
						return parent::__get($strName);
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}
			}
		}

		/**
		 * Override method to perform a property "Set"
		 * This will set the property $strName to be $mixValue
		 *
		 * @param string $strName Name of the property to set
		 * @param string $mixValue New value of the property
		 * @return mixed
		 */
		public function __set($strName, $mixValue) {
			try {
				switch ($strName) {
					// Controls that point to MantisSponsorshipTable fields
					case 'IdControl':
						return ($this->lblId = QType::Cast($mixValue, 'QControl'));
					case 'BugIdControl':
						return ($this->txtBugId = QType::Cast($mixValue, 'QControl'));
					case 'UserIdControl':
						return ($this->txtUserId = QType::Cast($mixValue, 'QControl'));
					case 'AmountControl':
						return ($this->txtAmount = QType::Cast($mixValue, 'QControl'));
					case 'LogoControl':
						return ($this->txtLogo = QType::Cast($mixValue, 'QControl'));
					case 'UrlControl':
						return ($this->txtUrl = QType::Cast($mixValue, 'QControl'));
					case 'PaidControl':
						return ($this->txtPaid = QType::Cast($mixValue, 'QControl'));
					case 'DateSubmittedControl':
						return ($this->txtDateSubmitted = QType::Cast($mixValue, 'QControl'));
					case 'LastUpdatedControl':
						return ($this->txtLastUpdated = QType::Cast($mixValue, 'QControl'));
					default:
						return parent::__set($strName, $mixValue);
				}
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}
	}
?>